package com.peopledelete.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peopledelete.pojo.X;
import com.peopledelete.mapper.XMapper;
import com.peopledelete.service.XService;

/**
 * @author cyt
 * @create 2020-06-15 15:21
 */
@Service
public class XServiceImpl extends ServiceImpl<XMapper, X> implements XService {

    // 查出 指定日期 的数据
    @Override
    public X getXByDate(String date) {
        QueryWrapper<X> wrapper = new QueryWrapper<>();
        wrapper.eq("date", date);
        return baseMapper.selectOne(wrapper);
    }
}
